Repository navigation
fix(web): file chips in chat say what they are - #1011
Merged
Merged
Conversation
A file name the agent only mentions (`photo.jpg`) no longer looks like a button. It draws as plain inline code. Hovering looks it up in the project: found, it shows the path and opens on click; not found, it stays text. The old dashed "Not in this project" chip claimed more than the search knew. A bare name whose full path the same message already wrote out is that file, so it opens it directly instead of searching the project. The paths are gathered over the whole message, since chat draws each block on its own. Paths in code blocks and inside longer code spans don't count, and partial paths like `Model/Form.php` still go through the project lookup. Real file and place chips now wear link blue: a blue tint behind blue text, with no edge, so they read as links rather than buttons or code. This also drops a stray underline the generic link rule put on chips. Find in chat reads names the way they are drawn.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A file name the agent only mentioned (
photo.jpg, no folder) showed as a file chip. When the project didn't have it, the chip went dashed and said "Not in this project", which reads as if Threadlines knew the file was somewhere else. And real file chips looked like buttons.Bare names are plain code. A name with no folder draws as ordinary inline code. Hovering runs the project lookup: if the file is there, the hover shows its path, a dotted underline appears, and click and right-click work as before. If not, it stays text, with no link and no hover label. A bare image name the project has still shows the picture with its chip.
A name borrows a path the message wrote. When the same message gives a file's full path (a link with a folder, an absolute path in backticks, an image path in prose) and later uses just its name, the name opens that file directly. Paths are gathered over the whole message, because chat draws each block separately, and kept stable so settled blocks don't re-render while a reply streams. Fenced blocks and paths inside longer code spans don't count. Partial paths like
Model/Form.phpstill go through the project lookup.File and place chips wear link blue. A blue tint behind blue text, no edge, so they read as links rather than buttons or code. A file that was looked for and is missing keeps a grey dashed outline. This also removes an underline the generic chat link rule was putting on chips.
Find in chat reads names the way they are drawn.
Checked:
vp fmt,vp lint,vp run typecheck, the chatMarkdown/chatFind unit tests, and the ChatMarkdown, SubagentTranscript and ChatView.agents browser suites. Screenshots in light and dark were checked with the bundled fonts.